import Mock from 'mockjs'

let random = Mock.Random
export default {
	getUserInfo:()=>{
		return {
			state: 200,
			method: 'get',
			code: 10000,
			requestId: random.string('lower', 15),
			path: '/sys/user/info',
			message: '成功',
			error: '无效的身份信息',
			timestamp: random.now('yyyy-MM-dd HH:mm:ss.SSSZ'),
			data: {
				id: 1,
				nickName: 'Mock NickName',
				userName: 'Mock Name',
				headUrl: 'https://s1.ax1x.com/2020/05/02/Jj88UJ.jpg',
				email: 'mock@qq.com',
				sex: 0,
				cover: 'https://s1.ax1x.com/2020/05/07/YZTD6H.png',
				motto: 'mock motto',
				root: false
			}
		}
	}
}